<div class="articles form">
<?php echo $this->ExtendedForm->create('Article', array('class' => 'form-horizontal', 'novalidate' => 'novalidate'));?>
	<fieldset>
        <legend><?php echo __d('admin', 'Edit Article'); ?></legend>
	<div class="form-group row">
        <div class="col-sm-2">
            <label for="language">Language</label>
            <select name="language" id="language" class="form-control">
                <option value="vietnam">VietNam</option>
                <option value="english">English</option>
            </select>
        </div>
    </div>
	<?php
		if(isset($this->request->params['named']['article_id'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('article_id', array_merge(array('label' => __d('admin', 'Article'))));
		if(isset($this->request->params['named']['article_id'])) echo '</div>';
		
		if(isset($this->request->params['named']['image'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('image', array_merge(array('type' => 'image', 'label' => __d('admin', 'Image (Hinh Vuong >= 350x350)'))));
		if(isset($this->request->params['named']['image'])) echo '</div>';
	?>
	<div class="area-language" id="text-vietnam">
	<?php
		if(isset($this->request->params['named']['title'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('title', array_merge(array('label' => __d('admin', 'Title *'))));
		if(isset($this->request->params['named']['title'])) echo '</div>';
		
		if(isset($this->request->params['named']['alias'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('alias', array_merge(array('label' => __d('admin', 'Alias *'))));
		if(isset($this->request->params['named']['alias'])) echo '</div>';
		
		if(isset($this->request->params['named']['short_des'])) echo '<div style="display: none;">';
		echo $this->Form->input('Article.short_des', array_merge(array('type' => 'textarea', 'label' => __d('admin', 'Short Des'), 'class' => 'form-control', 'div' => 'form-group row', 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['short_des'])) echo '</div>';
		
		if(isset($this->request->params['named']['full_text'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('full_text', array_merge(array('label' => __d('admin', 'Full Text *'), 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['full_text'])) echo '</div>';
	?>
	 </div>
    <div class="area-language" id="text-english" style="display:none">
	<?php
		if(isset($this->request->params['named']['title_en'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('title_en', array_merge(array('label' => __d('admin', 'Title En'))));
		if(isset($this->request->params['named']['title_en'])) echo '</div>';
		
		if(isset($this->request->params['named']['alias_en'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('alias_en', array_merge(array('label' => __d('admin', 'Alias'))));
		if(isset($this->request->params['named']['alias_en'])) echo '</div>';
		
		if(isset($this->request->params['named']['short_des_en'])) echo '<div style="display: none;">';
		echo $this->Form->input('Article.short_des_en', array_merge(array('type' => 'textarea', 'label' => __d('admin', 'Short Des En'), 'class' => 'form-control', 'div' => 'form-group row', 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['short_des_en'])) echo '</div>';
		
		if(isset($this->request->params['named']['full_text_en'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('full_text_en', array_merge(array('label' => __d('admin', 'Full Text En'), 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['full_text_en'])) echo '</div>';
	?>
	</div>
	<?php
		if(isset($this->request->params['named']['meta_key'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('meta_key', array_merge(array('label' => __d('admin', 'Meta Key'), 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['meta_key'])) echo '</div>';

		if(isset($this->request->params['named']['meta_desc'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('meta_desc', array_merge(array('label' => __d('admin', 'Meta Desc'), 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['meta_desc'])) echo '</div>';
		
		if(isset($this->request->params['named']['created_date'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('created_date', array_merge(array('label' => __d('admin', 'Created Date'))));
		if(isset($this->request->params['named']['created_date'])) echo '</div>';

		//echo '<div class="form-group row"><div class="col-sm-4">';
		//echo $this->Form->checkbox('is_show', array('hiddenField' => false, 'class' => 'input')) . ' Show';
		//echo '</div></div>';
	?>
	</fieldset>
    <input type="hidden" name="data[Article][article_category_id]" value="1">
<?php echo $this->ExtendedForm->end(array('label' => __d('admin', 'Save Article'), 'class' => 'btn btn-primary', 'div' => false, 'before' => '<div class="control-group"><div class="controls">', 'after' => "\n" . $this->Html->link(__d('admin', 'Cancel'), $redirectUrl, array('class' => 'btn btn-default')) . '</div></div>'));?>
</div>